package org.runecore.rs2.core;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * RuneCore
 * Aug 29, 2011
 * @author Harry Andreas<Harry@RuneCore.org>
 */

public class GameLogicCore extends ThreadPoolExecutor {
	
	/**
	 * 
	 * @param numberThreads
	 */
	public GameLogicCore(int numberThreads) {
		super(numberThreads, numberThreads, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>());
	}
	
	/**
	 * 
	 * @param nThreads
	 * @param threadFactory
	 */
	public GameLogicCore(int nThreads, ThreadFactory threadFactory) {
		super(nThreads, nThreads, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>(), threadFactory);
	}

}